//
//  UIButton+Extension.swift
//  YQL_WeiBo
//
//  Created by apple on 2016/11/13.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(title: String, textColor: UIColor, textFont: UIFont, imageName: String) {
        
        self.init()
        
        self.setBackgroundImage(UIImage.init(named: imageName), for: .normal)
        self.setTitle(title, for: .normal)
        self.setTitleColor(textColor, for: .normal)
        self.titleLabel?.font = textFont
    }
    
    
    
}
